﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using CodeWork.Library.Web;
using System.Collections.Generic;

public partial class master_public : BaseMaster
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            PrepareControls();
            LoadMenu();
        }
    }

    private void LoadMenu()
    {
        mnuLefMenu.Items.Add(new MenuItem("Music"));
        mnuLefMenu.Items.Add(new MenuItem("Religion"));
        mnuLefMenu.Items.Add(new MenuItem("Library"));
        mnuLefMenu.Items.Add(new MenuItem("News"));
        mnuLefMenu.Items.Add(new MenuItem("Hotel"));
        mnuLefMenu.Items.Add(new MenuItem("Fashion house"));
        mnuLefMenu.Items.Add(new MenuItem("School"));
        mnuLefMenu.Items.Add(new MenuItem("Shopping center"));
        mnuLefMenu.Items.Add(new MenuItem("ISP"));
        mnuLefMenu.Items.Add(new MenuItem("University"));
        mnuLefMenu.Items.Add(new MenuItem("Real estate"));
        mnuLefMenu.Items.Add(new MenuItem("Government"));
        mnuLefMenu.Items.Add(new MenuItem("Travel"));
        mnuLefMenu.Items.Add(new MenuItem("Theme park"));
        mnuLefMenu.Items.Add(new MenuItem("Police"));
        mnuLefMenu.Items.Add(new MenuItem("Fire service"));
        mnuLefMenu.Items.Add(new MenuItem("Forum"));
        mnuLefMenu.Items.Add(new MenuItem("Chat room"));
    }

    private void PrepareControls()
    {
        ibtDoSearch.ImageUrl = "~/App_Themes/" + Page.Theme + "/image/search_button.gif";
        ibtSubmitLink.ImageUrl = "~/App_Themes/" + Page.Theme + "/image/submit_link_button.gif";
    }

    protected void tbxSubmitUrl_Click(object sender, ImageClickEventArgs e)
    {
        try
        {
            BDHomePage.BLL.LinkSubmission.SubmitLink(tbxSubmitUrl.Text);

        }
        catch (Exception ex)
        {

        }
    }
}
